﻿* Encoding: UTF-8.
RECODE Q20.a ("A Remainer"=1) ("A Leaver"=3) ("Neither a Leaver nor a Remainer"=2) (else=99) INTO refid.
VARIABLE LABELS refid 'Referendum ID'.
VALUE LABELS refid (1)Remainer (2)Neither (3)Leaver (99)Missing.
EXECUTE. 
RECODE Q21.a ("Remain"=1) ("Leave"=3) ("Neither Leave nor Remain"=2) (else=99) INTO refid1.
VARIABLE LABELS refid1 'Referendum ID follow up'.
VALUE LABELS refid1 (1)Remainer (2)Neither (3)Leaver (99)Missing.
EXECUTE. 

RECODE Q22.a ("Strongly agree"=5) ("Agree"=4) ("Neither agree nor disagree"=3) ("Disagree"=2) ("Strongly disagree"=1) (else=99) INTO EArefR1.
VARIABLE LABELS EArefR1 'Emotional attachment R- we not they'.
VALUE LABELS EArefR1 (1)Strongly disagree (2)Disagree (3)Neither agree nor disagree (4)Agree (5)Strongly agree (99)Missing.
EXECUTE. 
RECODE Q22.a1 ("Strongly agree"=5) ("Agree"=4) ("Neither agree nor disagree"=3) ("Disagree"=2) ("Strongly disagree"=1) (else=99) INTO EArefR2.
VARIABLE LABELS EArefR2 'Emotional attachment R- criticism=personal insult'.
VALUE LABELS EArefR2 (1)Strongly disagree (2)Disagree (3)Neither agree nor disagree (4)Agree (5)Strongly agree (99)Missing.
EXECUTE. 
RECODE Q22.a2 ("Strongly agree"=5) ("Agree"=4) ("Neither agree nor disagree"=3) ("Disagree"=2) ("Strongly disagree"=1) (else=99) INTO EArefR3.
VARIABLE LABELS EArefR3 'Emotional attachment R- lot in common'.
VALUE LABELS EArefR3 (1)Strongly disagree (2)Disagree (3)Neither agree nor disagree (4)Agree (5)Strongly agree (99)Missing.
EXECUTE. 
RECODE Q22.a3 ("Strongly agree"=5) ("Agree"=4) ("Neither agree nor disagree"=3) ("Disagree"=2) ("Strongly disagree"=1) (else=99) INTO EArefR4.
VARIABLE LABELS EArefR4 'Emotional attachment R- connected'.
VALUE LABELS EArefR4 (1)Strongly disagree (2)Disagree (3)Neither agree nor disagree (4)Agree (5)Strongly agree (99)Missing.
EXECUTE. 
RECODE Q22.a4 ("Strongly agree"=5) ("Agree"=4) ("Neither agree nor disagree"=3) ("Disagree"=2) ("Strongly disagree"=1) (else=99) INTO EArefR5.
VARIABLE LABELS EArefR5 'Emotional attachment R- praise feels good'.
VALUE LABELS EArefR5 (1)Strongly disagree (2)Disagree (3)Neither agree nor disagree (4)Agree (5)Strongly agree (99)Missing.
EXECUTE. 
RECODE Q22.a ("Strongly agree"=5) ("Agree"=4) ("Neither agree nor disagree"=3) ("Disagree"=2) ("Strongly disagree"=1) (else=99) INTO EArefR1.
VARIABLE LABELS EArefR1 'Emotional attachment R- we not they'.
VALUE LABELS EArefR1 (1)Strongly disagree (2)Disagree (3)Neither agree nor disagree (4)Agree (5)Strongly agree (99)Missing.
EXECUTE. 
RECODE Q22.b ("Strongly agree"=5) ("Agree"=4) ("Neither agree nor disagree"=3) ("Disagree"=2) ("Strongly disagree"=1) (else=99) INTO EArefR2.
VARIABLE LABELS EArefR2 'Emotional attachment R- criticism=personal insult'.
VALUE LABELS EArefR2 (1)Strongly disagree (2)Disagree (3)Neither agree nor disagree (4)Agree (5)Strongly agree (99)Missing.
EXECUTE. 
RECODE Q22.c ("Strongly agree"=5) ("Agree"=4) ("Neither agree nor disagree"=3) ("Disagree"=2) ("Strongly disagree"=1) (else=99) INTO EArefR3.
VARIABLE LABELS EArefR3 'Emotional attachment R- lot in common'.
VALUE LABELS EArefR3 (1)Strongly disagree (2)Disagree (3)Neither agree nor disagree (4)Agree (5)Strongly agree (99)Missing.
EXECUTE. 
RECODE Q22.d ("Strongly agree"=5) ("Agree"=4) ("Neither agree nor disagree"=3) ("Disagree"=2) ("Strongly disagree"=1) (else=99) INTO EArefR4.
VARIABLE LABELS EArefR4 'Emotional attachment R- connected'.
VALUE LABELS EArefR4 (1)Strongly disagree (2)Disagree (3)Neither agree nor disagree (4)Agree (5)Strongly agree (99)Missing.
EXECUTE. 
RECODE Q22.e ("Strongly agree"=5) ("Agree"=4) ("Neither agree nor disagree"=3) ("Disagree"=2) ("Strongly disagree"=1) (else=99) INTO EArefR5.
VARIABLE LABELS EArefR5 'Emotional attachment R- praise feels good'.
VALUE LABELS EArefR5 (1)Strongly disagree (2)Disagree (3)Neither agree nor disagree (4)Agree (5)Strongly agree (99)Missing.
EXECUTE. 


COMPUTE EArefRscale=99.
EXECUTE.
DO IF (EArefR1<99 & EArefR2<99 &EArefR3<99&EArefR4<99&EArefR5<99).
COMPUTE EArefRscale = (EArefR1 +EArefR2+EArefR3+EArefR4+EArefR5)/5.
END IF.
EXECUTE.

RECODE Q23.a ("Strongly agree"=5) ("Agree"=4) ("Neither agree nor disagree"=3) ("Disagree"=2) ("Strongly disagree"=1) (else=99) INTO EArefL1.
VARIABLE LABELS EArefL1 'Emotional attachment L- we not they'.
VALUE LABELS EArefL1 (1)Strongly disagree (2)Disagree (3)Neither agree nor disagree (4)Agree (5)Strongly agree (99)Missing.
EXECUTE. 
RECODE Q23.a1 ("Strongly agree"=5) ("Agree"=4) ("Neither agree nor disagree"=3) ("Disagree"=2) ("Strongly disagree"=1) (else=99) INTO EArefL2.
VARIABLE LABELS EArefL2 'Emotional attachment L- criticism=personal insult'.
VALUE LABELS EArefL2 (1)Strongly disagree (2)Disagree (3)Neither agree nor disagree (4)Agree (5)Strongly agree (99)Missing.
EXECUTE. 
RECODE Q23.a2 ("Strongly agree"=5) ("Agree"=4) ("Neither agree nor disagree"=3) ("Disagree"=2) ("Strongly disagree"=1) (else=99) INTO EArefL3.
VARIABLE LABELS EArefL3 'Emotional attachment L- lot in common'.
VALUE LABELS EArefL3 (1)Strongly disagree (2)Disagree (3)Neither agree nor disagree (4)Agree (5)Strongly agree (99)Missing.
EXECUTE. 
RECODE Q23.a3 ("Strongly agree"=5) ("Agree"=4) ("Neither agree nor disagree"=3) ("Disagree"=2) ("Strongly disagree"=1) (else=99) INTO EArefL4.
VARIABLE LABELS EArefL4 'Emotional attachment L- connected'.
VALUE LABELS EArefL4 (1)Strongly disagree (2)Disagree (3)Neither agree nor disagree (4)Agree (5)Strongly agree (99)Missing.
EXECUTE. 
RECODE Q23.a4 ("Strongly agree"=5) ("Agree"=4) ("Neither agree nor disagree"=3) ("Disagree"=2) ("Strongly disagree"=1) (else=99) INTO EArefL5.
VARIABLE LABELS EArefL5 'Emotional attachment L- praise feels good'.
VALUE LABELS EArefL5 (1)Strongly disagree (2)Disagree (3)Neither agree nor disagree (4)Agree (5)Strongly agree (99)Missing.
EXECUTE. 

RECODE Q23.a ("Strongly agree"=5) ("Agree"=4) ("Neither agree nor disagree"=3) ("Disagree"=2) ("Strongly disagree"=1) (else=99) INTO EArefL1.
VARIABLE LABELS EArefL1 'Emotional attachment L- we not they'.
VALUE LABELS EArefL1 (1)Strongly disagree (2)Disagree (3)Neither agree nor disagree (4)Agree (5)Strongly agree (99)Missing.
EXECUTE. 
RECODE Q23.b ("Strongly agree"=5) ("Agree"=4) ("Neither agree nor disagree"=3) ("Disagree"=2) ("Strongly disagree"=1) (else=99) INTO EArefL2.
VARIABLE LABELS EArefL2 'Emotional attachment L- criticism=personal insult'.
VALUE LABELS EArefL2 (1)Strongly disagree (2)Disagree (3)Neither agree nor disagree (4)Agree (5)Strongly agree (99)Missing.
EXECUTE. 
RECODE Q23.c ("Strongly agree"=5) ("Agree"=4) ("Neither agree nor disagree"=3) ("Disagree"=2) ("Strongly disagree"=1) (else=99) INTO EArefL3.
VARIABLE LABELS EArefL3 'Emotional attachment L- lot in common'.
VALUE LABELS EArefL3 (1)Strongly disagree (2)Disagree (3)Neither agree nor disagree (4)Agree (5)Strongly agree (99)Missing.
EXECUTE. 
RECODE Q23.d ("Strongly agree"=5) ("Agree"=4) ("Neither agree nor disagree"=3) ("Disagree"=2) ("Strongly disagree"=1) (else=99) INTO EArefL4.
VARIABLE LABELS EArefL4 'Emotional attachment L- connected'.
VALUE LABELS EArefL4 (1)Strongly disagree (2)Disagree (3)Neither agree nor disagree (4)Agree (5)Strongly agree (99)Missing.
EXECUTE. 
RECODE Q23.e ("Strongly agree"=5) ("Agree"=4) ("Neither agree nor disagree"=3) ("Disagree"=2) ("Strongly disagree"=1) (else=99) INTO EArefL5.
VARIABLE LABELS EArefL5 'Emotional attachment L- praise feels good'.
VALUE LABELS EArefL5 (1)Strongly disagree (2)Disagree (3)Neither agree nor disagree (4)Agree (5)Strongly agree (99)Missing.
EXECUTE. 

COMPUTE EArefLscale=99.
EXECUTE.
DO IF (EArefL1<99 & EArefL2<99 &EArefL3<99&EArefL4<99&EArefL5<99).
COMPUTE EArefLscale = (EArefL1 +EArefL2+EArefL3+EArefL4+EArefL5)/5.
END IF.
EXECUTE.

RECODE Q24.a ("Strongly agree"=5) ("Agree"=4) ("Neither agree nor disagree"=3) ("Disagree"=2) ("Strongly disagree"=1) (else=99) INTO Rmarry.
VARIABLE LABELS RMarry 'Happy if child married a Remainer'.
VALUE LABELS RMarry (1)Strongly disagree (2)Disagree (3)Neither agree nor disagree (4)Agree (5)Strongly agree (99)Missing.
EXECUTE. 
RECODE Q24.a1 ("Strongly agree"=5) ("Agree"=4) ("Neither agree nor disagree"=3) ("Disagree"=2) ("Strongly disagree"=1) (else=99) INTO Rtalk.
VARIABLE LABELS RTalk 'Happy to talk politics with  Remainer'.
VALUE LABELS RTalk (1)Strongly disagree (2)Disagree (3)Neither agree nor disagree (4)Agree (5)Strongly agree (99)Missing.
EXECUTE. 
RECODE Q25.a ("Strongly agree"=5) ("Agree"=4) ("Neither agree nor disagree"=3) ("Disagree"=2) ("Strongly disagree"=1) (else=99) INTO Lmarry.
VARIABLE LABELS LMarry 'Happy if child married a Leaver'.
VALUE LABELS LMarry (1)Strongly disagree (2)Disagree (3)Neither agree nor disagree (4)Agree (5)Strongly agree (99)Missing.
EXECUTE. 
RECODE Q25.a1 ("Strongly agree"=5) ("Agree"=4) ("Neither agree nor disagree"=3) ("Disagree"=2) ("Strongly disagree"=1) (else=99) INTO Ltalk.
VARIABLE LABELS LTalk 'Happy to talk politics with Leaver'.
VALUE LABELS LTalk (1)Strongly disagree (2)Disagree (3)Neither agree nor disagree (4)Agree (5)Strongly agree (99)Missing.
EXECUTE. 
RECODE Q24.b ("Strongly agree"=5) ("Agree"=4) ("Neither agree nor disagree"=3) ("Disagree"=2) ("Strongly disagree"=1) (else=99) INTO Rtalk.
VARIABLE LABELS RTalk 'Happy to talk politics with  Remainer'.
VALUE LABELS RTalk (1)Strongly disagree (2)Disagree (3)Neither agree nor disagree (4)Agree (5)Strongly agree (99)Missing.
EXECUTE. 
RECODE Q25.a ("Strongly agree"=5) ("Agree"=4) ("Neither agree nor disagree"=3) ("Disagree"=2) ("Strongly disagree"=1) (else=99) INTO Lmarry.
VARIABLE LABELS LMarry 'Happy if child married a Leaver'.
VALUE LABELS LMarry (1)Strongly disagree (2)Disagree (3)Neither agree nor disagree (4)Agree (5)Strongly agree (99)Missing.
EXECUTE. 
RECODE Q25.b ("Strongly agree"=5) ("Agree"=4) ("Neither agree nor disagree"=3) ("Disagree"=2) ("Strongly disagree"=1) (else=99) INTO Ltalk.
VARIABLE LABELS LTalk 'Happy to talk politics with Leaver'.
VALUE LABELS LTalk (1)Strongly disagree (2)Disagree (3)Neither agree nor disagree (4)Agree (5)Strongly agree (99)Missing.
EXECUTE. 

RECODE Q26b ("Conservative"=1) ("Labour"=3) ("United Kingdom Independence Party (UKIP)"=4) ("No - None"=2) ("Liberal Democrat"=4) ("Don’t know"=2) ("Scottish National Party (SNP)"=4) 
                        ("British National Party (BNP)"=4) ("Green Party"=4) ("Other Party"=4) ("Plaid Cymru"=4) (else=99) INTO pid.
VARIABLE LABELS pid 'Party ID'.
VALUE LABELS pid (1)Conservative (2)None (3)Labour (4)Other party (99)Missing.
EXECUTE. 
RECODE Q27b ("Conservative"=1) ("Labour"=3) ("United Kingdom Independence Party (UKIP)"=4) ("No - None"=2) ("Liberal Democrat"=4) ("Don’t know"=2) ("Scottish National Party (SNP)"=4) 
                        ("British National Party (BNP)"=4) ("Green Party"=4) ("Other Party"=4) ("Plaid Cymru"=4) (else=99) INTO pid1.
VARIABLE LABELS pid1 'Party ID'.
VALUE LABELS pid1 (1)Conservative (2)None (3)Labour (4)Other party (99)Missing.
EXECUTE. 

RECODE Q28.b ("Strongly agree"=5) ("Agree"=4) ("Neither agree nor disagree"=3) ("Disagree"=2) ("Strongly disagree"=1) (else=99) INTO EApidC1.
VARIABLE LABELS EApidC1 'Emotional attachment C- we not they'.
VALUE LABELS EApidC1 (1)Strongly disagree (2)Disagree (3)Neither agree nor disagree (4)Agree (5)Strongly agree (99)Missing.
EXECUTE. 
RECODE Q28.b1 ("Strongly agree"=5) ("Agree"=4) ("Neither agree nor disagree"=3) ("Disagree"=2) ("Strongly disagree"=1) (else=99) INTO EApidC2.
VARIABLE LABELS EApidC2 'Emotional attachment C- criticism=personal insult'.
VALUE LABELS EApidC2 (1)Strongly disagree (2)Disagree (3)Neither agree nor disagree (4)Agree (5)Strongly agree (99)Missing.
EXECUTE. 
RECODE Q28.b2 ("Strongly agree"=5) ("Agree"=4) ("Neither agree nor disagree"=3) ("Disagree"=2) ("Strongly disagree"=1) (else=99) INTO EApidC3.
VARIABLE LABELS EApidC3 'Emotional attachment C- lot in common'.
VALUE LABELS EApidC3 (1)Strongly disagree (2)Disagree (3)Neither agree nor disagree (4)Agree (5)Strongly agree (99)Missing.
EXECUTE. 
RECODE Q28.b3 ("Strongly agree"=5) ("Agree"=4) ("Neither agree nor disagree"=3) ("Disagree"=2) ("Strongly disagree"=1) (else=99) INTO EApidC4.
VARIABLE LABELS EApidC4 'Emotional attachment C- connected'.
VALUE LABELS EApidC4 (1)Strongly disagree (2)Disagree (3)Neither agree nor disagree (4)Agree (5)Strongly agree (99)Missing.
EXECUTE. 
RECODE Q28.b4 ("Strongly agree"=5) ("Agree"=4) ("Neither agree nor disagree"=3) ("Disagree"=2) ("Strongly disagree"=1) (else=99) INTO EApidC5.
VARIABLE LABELS EApidC5 'Emotional attachment C- praise feels good'.
VALUE LABELS EApidC5 (1)Strongly disagree (2)Disagree (3)Neither agree nor disagree (4)Agree (5)Strongly agree (99)Missing.
EXECUTE. 

COMPUTE EApidCscale=99.
EXECUTE.
DO IF (EApidC1<99 & EApidC2<99 &EApidC3<99&EApidC4<99&EApidC5<99).
COMPUTE EApidCscale = (EApidC1 +EApidC2+EApidC3+EApidC4+EApidC5)/5.
END IF.
EXECUTE.

RECODE Q29.b ("Strongly agree"=5) ("Agree"=4) ("Neither agree nor disagree"=3) ("Disagree"=2) ("Strongly disagree"=1) (else=99) INTO EApidLa1.
VARIABLE LABELS EApidLa1 'Emotional attachment La- we not they'.
VALUE LABELS EApidLa1 (1)Strongly disagree (2)Disagree (3)Neither agree nor disagree (4)Agree (5)Strongly agree (99)Missing.
EXECUTE. 
RECODE Q29.b1 ("Strongly agree"=5) ("Agree"=4) ("Neither agree nor disagree"=3) ("Disagree"=2) ("Strongly disagree"=1) (else=99) INTO EApidLa2.
VARIABLE LABELS EApidLa2 'Emotional attachment La- criticism=personal insult'.
VALUE LABELS EApidLa2 (1)Strongly disagree (2)Disagree (3)Neither agree nor disagree (4)Agree (5)Strongly agree (99)Missing.
EXECUTE. 
RECODE Q29.b2 ("Strongly agree"=5) ("Agree"=4) ("Neither agree nor disagree"=3) ("Disagree"=2) ("Strongly disagree"=1) (else=99) INTO EApidLa3.
VARIABLE LABELS EApidLa3 'Emotional attachment La- lot in common'.
VALUE LABELS EApidLa3 (1)Strongly disagree (2)Disagree (3)Neither agree nor disagree (4)Agree (5)Strongly agree (99)Missing.
EXECUTE. 
RECODE Q29.b3 ("Strongly agree"=5) ("Agree"=4) ("Neither agree nor disagree"=3) ("Disagree"=2) ("Strongly disagree"=1) (else=99) INTO EApidLa4.
VARIABLE LABELS EApidLa4 'Emotional attachment La- connected'.
VALUE LABELS EApidLa4 (1)Strongly disagree (2)Disagree (3)Neither agree nor disagree (4)Agree (5)Strongly agree (99)Missing.
EXECUTE. 
RECODE Q29.b4 ("Strongly agree"=5) ("Agree"=4) ("Neither agree nor disagree"=3) ("Disagree"=2) ("Strongly disagree"=1) (else=99) INTO EApidLa5.
VARIABLE LABELS EApidLa5 'Emotional attachment LA- praise feels good'.
VALUE LABELS EApidLa5 (1)Strongly disagree (2)Disagree (3)Neither agree nor disagree (4)Agree (5)Strongly agree (99)Missing.
EXECUTE. 

COMPUTE EApidLascale=99.
EXECUTE.
DO IF (EApidLa1<99 & EApidLa2<99 &EApidLa3<99&EApidLa4<99&EApidLa5<99).
COMPUTE EApidLascale = (EApidLa1 +EApidLa2+EApidLa3+EApidLa4+EApidLa5)/5.
END IF.
EXECUTE.

RECODE Q30.b ("Strongly agree"=5) ("Agree"=4) ("Neither agree nor disagree"=3) ("Disagree"=2) ("Strongly disagree"=1) (else=99) INTO Lamarry.
VARIABLE LABELS LaMarry 'Happy if child married Labour'.
VALUE LABELS LaMarry (1)Strongly disagree (2)Disagree (3)Neither agree nor disagree (4)Agree (5)Strongly agree (99)Missing.
EXECUTE. 
RECODE Q30.b1 ("Strongly agree"=5) ("Agree"=4) ("Neither agree nor disagree"=3) ("Disagree"=2) ("Strongly disagree"=1) (else=99) INTO Latalk.
VARIABLE LABELS LaTalk 'Happy to talk politics with Labour'.
VALUE LABELS LaTalk (1)Strongly disagree (2)Disagree (3)Neither agree nor disagree (4)Agree (5)Strongly agree (99)Missing.
EXECUTE. 
RECODE Q31.b ("Strongly agree"=5) ("Agree"=4) ("Neither agree nor disagree"=3) ("Disagree"=2) ("Strongly disagree"=1) (else=99) INTO Cmarry.
VARIABLE LABELS CMarry 'Happy if child married a Conservative'.
VALUE LABELS CMarry (1)Strongly disagree (2)Disagree (3)Neither agree nor disagree (4)Agree (5)Strongly agree (99)Missing.
EXECUTE. 
RECODE Q31.b1 ("Strongly agree"=5) ("Agree"=4) ("Neither agree nor disagree"=3) ("Disagree"=2) ("Strongly disagree"=1) (else=99) INTO Ctalk.
VARIABLE LABELS CTalk 'Happy to talk politics with Conservative'.
VALUE LABELS CTalk (1)Strongly disagree (2)Disagree (3)Neither agree nor disagree (4)Agree (5)Strongly agree (99)Missing.
EXECUTE. 


*TABLE 1

WEIGHT BY Weights.
FREQUENCIES VARIABLES=pid refid
  /ORDER=ANALYSIS.

MEANS TABLES= EArefRscale EArefLscale BY refid
  /CELLS=MEAN COUNT STDDEV.

MEANS TABLES= EApidCscale EApidLascale BY pid
  /CELLS=MEAN COUNT STDDEV.


*TABLE 3

WEIGHT BY Weights.
CROSSTABS
  /TABLES=refid BY Rmarry Rtalk Lmarry Ltalk
  /FORMAT=AVALUE TABLES
  /CELLS=ROW 
  /COUNT ROUND CELL.

CROSSTABS
  /TABLES=pid BY Lamarry Latalk Cmarry Ctalk
  /FORMAT=AVALUE TABLES
  /CELLS=ROW 
  /COUNT ROUND CELL.


*FOOTNOTE 4

RELIABILITY
  /VARIABLES=EArefL1 EArefL2 EArefL3 EArefL4 EArefL5
  /SCALE('ALL VARIABLES') ALL
  /MODEL=ALPHA
  /SUMMARY=TOTAL.
RELIABILITY
  /VARIABLES=EArefR1 EArefR2 EArefR3 EArefR4 EArefR5
  /SCALE('ALL VARIABLES') ALL
  /MODEL=ALPHA
  /SUMMARY=TOTAL.
RELIABILITY
  /VARIABLES=EApidC1 EApidC2 EApidC3 EApidC4 EApidC5 
  /SCALE('ALL VARIABLES') ALL
  /MODEL=ALPHA
  /SUMMARY=TOTAL.
RELIABILITY
  /VARIABLES=EApidLa1 EApidLa2 EApidLa3 EApidLa4 EApidLa5
  /SCALE('ALL VARIABLES') ALL
  /MODEL=ALPHA
  /SUMMARY=TOTAL.


*TABLE 3

CROSSTABS
  /TABLES=pid BY Lamarry Latalk Cmarry Ctalk
  /FORMAT=AVALUE TABLES
  /CELLS=ROW 
  /COUNT ROUND CELL.

CROSSTABS
  /TABLES=refid BY Lmarry Ltalk Rmarry Rtalk
  /FORMAT=AVALUE TABLES
  /CELLS=ROW 
  /COUNT ROUND CELL.

